package com.example.micro_property_springboot.pojo.DTO.user;

import com.baomidou.mybatisplus.annotation.TableField;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class PersonalDTO {
    @TableField(value = "username")
    @NotNull(message = "用户名不能为空")
    private String userName;

    @TableField(value = "real_name")
    @NotNull(message = "真名不能为空")
    private String realName;

    @TableField(value = "phone")
    @NotNull(message = "手机号不能为空")
    private String phone;

    @TableField(value = "dept_id")
    @NotNull(message = "部门id不能为空")
    private Long deptId;

    @TableField(value = "email")
    @NotNull(message = "邮箱不能为空")
    private String email;

    @TableField(value = "update_time")
    private LocalDateTime updateTime;
}
